package com.longchen.mall.controller;

import com.longchen.mall.common.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xbfinal
 * @Package com.longcehng.mall.controller
 * @Date 2024/7/14 11:20
 * 描述 : 测试案例
 */

@Slf4j
@RestController
@Api(tags = "测试接口")
@RequestMapping("test")
public class DemoController {


    @ApiOperation("测试")
    @PostMapping("/demo1")
    public Result<String> registerUser(@RequestBody String demo1) {
        return Result.ok(demo1);
    }
}
